from __future__ import absolute_import, unicode_literals

# 引入celery实例对象
from .celery import app as celery_app

__all__ = ('celery_app',)

import pymysql

pymysql.install_as_MySQLdb()
#前面两行是重要的，后面这些是测试用的，这里打印出mysql的版本，显示在程序运行界面上

# db = pymysql.connect(host='localhost', user='root', password='123456', db='testdb')
#
# cursor = db.cursor()
#
# cursor.execute('SELECT VERSION()')
# data = cursor.fetchone()
# print('DATABASE VERSION IS: %s' % data)
#
# db.close()
